﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CouponList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Weixin.CouponList" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>

<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>

<form id="pageForm" method="post" runat="Server" class="pageForm" 
    onsubmit="return navTabSearch(this);" action="/SystemManage/Weixin/Coupon/CouponList.aspx">
<div class="pageHeader">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
			    <span>代码&nbsp;</span>
				<asp:TextBox ID="tb_search_no" runat="server" cond="s_no" ctltype="textbox"></asp:TextBox>&nbsp;&nbsp;
			</li>
			<li>
			    <span>标题&nbsp;</span>
				<asp:TextBox ID="tb_search_title" runat="server" cond="s_title" ctltype="textbox"></asp:TextBox>&nbsp;&nbsp;
			</li>
		</ul>
	    <div class="subBar">
			<ul>
			<li>
			    <a class="buttonActive" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>&nbsp;查&nbsp;询&nbsp;</span></a>
			</li>
			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">
   	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="/SystemManage/Weixin/Coupon/EditCoupon.aspx" target="navTab" rel="editcoupon" title="编辑优惠券"><span>添加</span></a></li>
			<li><a class="delete" href="/SystemManage/Weixin/Coupon/DeleteCoupon.aspx?ajax=dels" target="selectedTodo" title="请确定要删除"><span>删除勾选</span></a></li>
		</ul>
	</div>
	<div class="tableList" layoutH="116">
	<table class="list" width="100%" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="5%" style="display: none">编号</th>
				<th width="25%">图片</th>
				<th width="10%">代码</th>
				<th width="30%">标题</th>
				<th width="15%">创建时间</th>
				<th width="10%">是否可用</th>
				<th width="10%">操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="grid">
                <ItemTemplate>
			    <tr target="uid" rel="<%# Eval("Id")%>">
                    <td><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
				    <td style="display: none"><span><%# Eval("Id")%></span></td>
                    <td><img src="<%# FileKit.FirstFilePath(Eval("ImgUrl"))%>" alt="" width="80px" /></td>
                    <td><%# Eval("CouponNo")%></td>
                    <td><%# Eval("Title")%></td>
				    <td><%# Eval("CreateDate") %></td>
				    <td><%# ParamKit.GetValue("YesNo_10", Eval("Status"), "&nbsp;")%></td>		
				    <td> 
				        <a href="/SystemManage/Weixin/Coupon/EditCoupon.aspx?uid=<%# Eval("Id")%>" target="navTab" title="编辑优惠券" rel="editcoupon" >修改</a>&nbsp;&nbsp;
				        <a href="/SystemManage/Weixin/Coupon/DeleteCoupon.aspx?uid=<%# Eval("Id")%>" target="ajaxTodo" title="请确定要删除">删除</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>
	</div>
	
     <%= _framePage.GetPagerContentHtml()%>
</div>
</form>